package entidades;

import java.io.Serializable;
import javax.persistence.*;

@Entity
@Table(name="aula")
public class Aula implements Serializable {
	private static final long serialVersionUID = 1L;
	
	@Id
	@Column(name="codAula")
	private int codAula;
	
	@Column(name="dia")
	private String dia;
	
	@ManyToOne
	@JoinColumn(name="turma_codTurma")
	private Turma turma;
	
	@ManyToOne
	@JoinColumn(name="professor_codProfessor")
	private Professor professor;
	
	public Aula(){
		
	}

	public String getDia() {
		return dia;
	}

	public void setDia(String dia) {
		this.dia = dia;
	}

	public int getCodAula() {
		return codAula;
	}

	public void setCodAula(int codAula) {
		this.codAula = codAula;
	}

	public Professor getProfessor() {
		return professor;
	}

	public void setProfessor(Professor professor) {
		this.professor = professor;
	}

	public Turma getTurma() {
		return turma;
	}

	public void setTurma(Turma turma) {
		this.turma = turma;
	}
}
